home *** CD-ROM | disk | FTP | other *** search
/ MacFormat 1997 April / macformat-049.iso / mac / Demos / Print Artist Demo / PA12-Mac.Dxr / 00355.ls < prev    next >
Encoding:
Text File  |  1996-10-03  |  611 b   |  27 lines

  1. on exitFrame
  2.   global loadNext, whatSpeed, whatFactor, frameLoop, waitTime1
  3.   if frameLoop = 0 then
  4.     set whatSpeed to whatSpeed + waitTime1
  5.   end if
  6.   if loadNext = 0 then
  7.     set frameLoop to 0
  8.     resetTimer()
  9.     go(#next)
  10.   else
  11.     if loadNext = 1 then
  12.       if frameLoop = 0 then
  13.         unLoad(label("invturn"), label("invturn") + 5)
  14.       end if
  15.       preLoad(label("invite2"), label("invite2") + 20)
  16.       if the timer < whatSpeed then
  17.         set frameLoop to 1
  18.         go(the frame)
  19.       else
  20.         set frameLoop to 0
  21.         resetTimer()
  22.         go(#next)
  23.       end if
  24.     end if
  25.   end if
  26. end
  27.